//
//  TableViewCell.m
//  KnowEveryThings
//
//  Created by lanou3g on 16/5/7.
//  Copyright © 2016年 王玲. All rights reserved.
//

#import "WLModelCell.h"
#import "UIImageView+WebCache.h"
@interface WLModelCell()
//图片
@property (weak, nonatomic) IBOutlet UIImageView *image;
//标题
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
//标签
@property (weak, nonatomic) IBOutlet UILabel *alsbel;
@end
@implementation WLModelCell

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (void)setmodel:(WLModel *)model {
    if (_readModel != model) {
        _readModel = model;
    }
}

- (void)layoutSubviews{
    self.titleLabel.text = self.readModel.title;
    
    [self.image sd_setImageWithURL:[NSURL URLWithString:self.readModel.imgsrc] placeholderImage:[UIImage imageNamed:@"bj1.jpg"]];
    self.alsbel.text = self.readModel.source;
}

@end
